<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>V-once</title>
  </head>
  <body>
    <div id="app">
      <h3>{{message}}</h3>
      <h3 v-once>{{message}}</h3>
      <h3>{{message}}</h3>
    </div>
    <script src="../vue.js"></script>

    <script>
      const app = new Vue({
        el: "#app", //用于挂载要管理的元素
        data: {
          message: "hello",
        },
      });
    </script>
  </body>
</html>
